package com.fjnldx.mes.service.scheduling.alarm.rule.inspector.trigger;

import com.fjnldx.mes.domain.pojo.alarm.enums.TriggerTypeEnum;
import com.fjnldx.mes.service.scheduling.alarm.model.MonitorModel;
import org.springframework.lang.Nullable;

/**
 * 触发
 */
public interface AlarmTrigger {

    /**
     * 触发类型
     */
    TriggerTypeEnum TriggerType();

    /**
     * 已触发
     */
    MonitorModel isTriggered(String cs, String tableName, @Nullable String devSn, String triggerValue, @Nullable String condition);
}
